package com.hjxr.quota.theme.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * zone对象 QUOTA_THEME_ZONE
 *
 * @author wanxiaochao
 * @date 2020-09-02
 */
@Data
@ApiModel
@TableName("quota_theme_zone")
@KeySequence(value = "seq_quota_theme_zone", clazz = Integer.class)
public class QuotaThemeZone extends Model<QuotaThemeZone> {
    private static final long serialVersionUID = 1L;

    /**
     * 自增主键
     */
    @TableId(value = "id", type = IdType.INPUT)
    @ApiModelProperty(value = "主键")
    private Integer id;
    /**
     * 主题域标题
     */
    @ApiModelProperty(value = "标题")
    private String zoneTitle;
    /**
     * 主题域描述
     */
    @ApiModelProperty(value = "描述")
    private String zoneDescription;
    /**
     * 创建人
     */
    private String createBy;
    /**
     * 创建时间
     */
    private Date createDate;
    @ApiModelProperty(value = "排序字段")
    private Integer orderNum;
    @TableField(exist = false)
    @ApiModelProperty(value = "子节点 主题集")
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<QuotaThemeSet> children;
    @ApiModelProperty(value = "前端使用唯一键")
    @TableField(exist = false)
    private String uuid;
    @ApiModelProperty(value = "类型")
    @TableField(exist = false)
    private String category;

    public String getCategory() {
        return "主题域";
    }
}
